#
# A makefile that creates the programs cortest, evaldet, and findpars.
# It was tested on Silicon Graphics' IRIX. Perhaps, there should not
# be problems on other platforms.
#

# COMPOPTS = -mtune=athlon-xp -O2 -funroll-loops
# COMPOPTS = -O3 -msse -msse2 -mmmx -m3dnow
# COMPOPTS = -ffast-math -O3 -msse -msse2 -mmmx -g3 

COMPILER =  g++
COMPOPTS = -O0 -g3 -Wall
MATHLIB  = -lm

default all: hartest

harris.o: harris.cpp harris.h
	$(COMPILER) harris.cpp $(COMPOPTS) -c

utils.o:  utils.cpp utils.h
	$(COMPILER) utils.cpp $(COMPOPTS) -c

hartest:  hartest.cpp harris.o utils.o
	$(COMPILER) hartest.cpp harris.o utils.o $(COMPOPTS) $(MATHLIB) -o hartest
   
clean:
	rm -rf *.o hartest

